package design.pattern.adapter.object$adapter;

/**
 * @author AtoVio, Winter Yuan
 */
public class Client {
    public static void main(String[] args) {
        // 创建计算机对象
        Computer computer = new Computer();

        String msg1 = computer.readSD(new SDCardImpl());
        System.out.println(msg1);

        System.out.println("================");
        // 读取TF卡中数据
        String msg2 = computer.readSD(new SDAdapterTF(new TFCardImpl()));
        System.out.println(msg2);
    }
}
